# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-io-pager
pkgver=2.10
pkgrel=2
pkgdesc="Perl/CPAN Module IO::Pager"
arch=("any")
url="https://search.cpan.org/dist/IO-Pager/"
license=("GPL" "PerlArtistic")
source=("https://cpan.metacpan.org/authors/id/J/JP/JPIERCE/IO-Pager-$pkgver.tgz")
sha256sums=('bcb4d8c2d280c8034b82591cc0b9eb67a004f90ce9aa05979fc6071307acb195')

build() {
  cd "$srcdir"/IO-Pager-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/IO-Pager-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
